package cn.z2huo.knowledge.function.supplier;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Supplier;

/**
 * <p>
 *
 * @author z2huo
 */
class PeopleExample {

    private static Map<String, People> peopleMap = new ConcurrentHashMap<>();

    public static People getPeople(String key, String name, Integer age) {

        return null;
    }

    public static void main(String[] args) {
        String name = "z2huo";
        Integer age = 18;
        Supplier<People> peopleSupplier = () -> new People(name, age);
        System.out.println(peopleSupplier.get());
    }

}
